HTMLify
style.css
Views: 14 | Author: cody
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 | body { font-family: "Roboto"; background-color: #e5eef3; text-align: center; color: #f1ce64; font-size: 28px; } a { color: #f1ce64; } .share { position: absolute; width: 400px; left: 50%; margin-left: -200px; top: 50%; margin-top: -40px; border-radius: 80px; } .share span { width: 200px; line-height: 80px; display: inline-block; font-weight: 700; text-transform: uppercase; position: absolute; left: 50%; margin-left: -100px; opacity: 1; transition: opacity 0.3s ease-in-out; pointer-events: none; } .share nav { font-size: 0; } .share a { line-height: 80px; width: 80px; text-align: center; display: inline-block; background-color: #ffffff; color: #ffffff; overflow: hidden; opacity: 1; transition: all 0.3s ease-in-out; margin: 0 -20px; box-shadow: 3px 1px 3px rgba(0, 0, 0, 0.1); } .share a:nth-child(1) { border-top-left-radius: 40px; border-bottom-left-radius: 40px; margin-left: 0; } .share a:nth-child(1):hover { background-color: #61c5ec; } .share a:nth-child(2):hover { background-color: #3B5998; } .share a:nth-child(3):hover { background-color: #ea4335; } .share a:nth-child(4) { border-top-right-radius: 40px; border-bottom-right-radius: 40px; margin-right: 0; } .share a:nth-child(4):hover { background-color: #000000; } .share:hover span, .share.hover span { opacity: 0; } .share:hover a, .share.hover a { border-radius: 50%; margin: 0 10px; color: #f1ce64; font-size: 28px; } .share:hover a:hover, .share.hover a:hover { color: #fff; } |